<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/system/mytable/Fk_rcntr_dep_auth.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/mytable/mytable/Fk_rcntr_dep_auth.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'id',
                footer: "Foots",
                cnName: '成本中心（子表）-部门授权',
                name: 'mytable/Fk_rcntr_dep_auth',
                url: "/Fk_rcntr_dep_auth/",
                sortName: "id"
            });
            const editFormFields = ref({"depid_oa":""});
            const editFormOptions = ref([[{"dataKey":"depart-oa","data":[],"title":"OA部门编号","field":"depid_oa","type":"select"}]]);
            const searchFormFields = ref({"depid_oa":""});
            const searchFormOptions = ref([[{"dataKey":"depart-oa","data":[],"title":"OA部门编号","field":"depid_oa","type":"number"}]]);
            const columns = ref([{field:'id',title:'id',type:'int',width:110,require:true,align:'left',sort:true},
                       {field:'depid_oa',title:'OA部门编号',type:'int',bind:{ key:'depart-oa',data:[]},width:110,align:'left'},
                       {field:'rcntr_id',title:'rcntr_id',type:'int',width:80,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
